# Author:wyq

username = input("username : ");
age = input("age: ");
age2 = int(input("age2:"))
print(type(age))
job = input("job : ");
salary = input("salsry : ");
#多块内存
info = '''
    ----info of '''+username+'''
    age :'''+age+'''
    job :'''+job+'''
    salary:'''+salary+'''
'''

info2 = '''
    ----info2 of  %s
    age : %d
    job : %s
    salary : %s
''' %(username,age2,job,salary)
#一块内存
info3 = '''
    ----info3 of {_name}
    age : {_age}
    job : {_job}
    salary : {_salary}
'''.format(_name=username,
           _age=age,
           _job=job,
           _salary=salary)

info4 = '''
    ----info4 of {0}
    age : {1}
    job : {2}
    salary : {3}
'''.format(username,
           age,
           job,
           salary)
print(info)
print(info2)
print(info3)
print(info4)
# %d 整数 %f 浮点